﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SchoolManagement.UI.UI_Forms
{
    public partial class FrmDashboard : Form
    {
        FrmStartbar starter;//= new FrmStartbar(dockpane1);
        public FrmDashboard()
        {
            InitializeComponent();
            starter = new FrmStartbar(dockPanel1);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int X = Cursor.Position.X;
            int Y = Cursor.Position.Y;
            if (starter == null || starter.IsDisposed)
                starter = new FrmStartbar(dockPanel1);
            starter.Show();
            starter.Location = new Point(X - 10, Y + 10);
        }
    }
}
